package com.huabo.contract.mysql.entity;

import java.math.BigDecimal;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;

/**
 * <p>
 * 
 * </p>
 *
 * @author huabo
 * @since 2022-03-14
 */
@Data
  @EqualsAndHashCode(callSuper = false)
    @TableName("TBL_ORG_BANKACCOUNT")
@ApiModel(value="TblOrgBankaccount对象", description="")
public class TblOrgBankaccountMySql implements Serializable {
    //合同管理-财务管理-收款管理-新增-收款银行账号
    //合同管理-财务管理-付款管理-新增-付款银行账号
    private static final long serialVersionUID = 1L;

      @ApiModelProperty(value = "主键Id 自增")
        @TableId("BANKID")
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "select HIBERNATE_SEQUENCE.nextval from dual")
      private BigDecimal bankid;

      @ApiModelProperty(value = "账号")
      @TableField("BANKACCNUM")
    private String bankaccnum;

      @ApiModelProperty(value = "户名")
      @TableField("BANKACCNAME")
    private String bankaccname;

      @ApiModelProperty(value = "账户编码")
      @TableField("BANKCODE")
    private String bankcode;

      @ApiModelProperty(value = "账户名称")
      @TableField("BANKNAME")
    private String bankname;

      @ApiModelProperty(value = "开户银行")
      @TableField("BANKKHYH")
    private String bankkhyh;

      @ApiModelProperty(value = "银行类别")
      @TableField("BANKYHLB")
    private String bankyhlb;

      @ApiModelProperty(value = "账户状态(0=正常，1=冻结，2=部分冻结，3=销户)")
      @TableField("BANKSTATE")
    private BigDecimal bankstate;

      @ApiModelProperty(value = "启用状态(1=启用, 0=非启用)")
      @TableField("BANKSTATUS")
    private BigDecimal bankstatus;

      @ApiModelProperty(value = "所属组织")
      @TableField("ORGID")
    private BigDecimal orgid;

      @ApiModelProperty(value = "创建时间")
      @TableField("CREATEDATE")
      @JSONField(format = "yyyy-MM-dd")
      @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date createdate;

      @ApiModelProperty(value = "外部银行账户主键ID")
      @TableField("OUTSIDEID")
    private String outsideid;


}
